package com.member.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.member.mapper.StudentMessageMapper;
import com.member.po.StudentMessage;
import com.member.service.StudentMessageService;

public class StudentMessageServiceImpl implements StudentMessageService{
	@Autowired
    private StudentMessageMapper studentMessageMapper;
    
    public StudentMessage selectByName(String name){
    	return studentMessageMapper.selectByName(name);
    }
    public StudentMessage selectById(int id){
    	return studentMessageMapper.selectById(id);
    }
    public void updateById(StudentMessage studentMssage){
    	studentMessageMapper.updateById(studentMssage);
    	System.out.println("更新成功");
    }
    public void deleteById(int id){
    	studentMessageMapper.deleteById(id);
    	System.out.println("删除成功");
    }
}
